package com.itheima.demo;

import java.io.*;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/7/10 19:20
 */
public class Demo_005 {
    public static void main(String[] args) throws IOException {
        //创建字符输入流;
        BufferedReader br = new BufferedReader(new FileReader("demo_IO\\wangwei.txt"));
        //一次读取一行;
        String line;
        //如果读取到了null,说明就读完了 ,退出循环;
        while ((line = br.readLine()) != null) {
            System.out.println(line);
        }
        br.close();
    }
}
